//导入Vue和Vuex
import Vue from "vue"
import Vuex from "vuex"
import cart from "@/store/cart.js"
import user from "@/store/user.js"

//将Vuex安装为Vue的插件
Vue.use(Vuex)

//创建store实例对象
const store = new Vuex.Store({
	modules:{
		my_cart:cart,
		my_user:user
	}
})
//向外共享store的实例对象
export default store